<div class="well clearfix">
<?php 
$this->load->helper('date');
?>
<style>
table td{vertical-align: bottom;}
</style>
<h2><?= lang('in_course'); ?></h2>
<table class="table table-striped table-bordered">
	<thead>
		<tr>
			<td></td>
			<td><?= lang('active_projects_details'); ?></td>
			<td><?= lang('active_projects_final_date'); ?></td>
			<td><?= lang('active_projects_premium'); ?></td>
		</tr>
	</thead>
	<tbody>
		<?php			
			
			$this->db->from('projects');
			$this->db->join('jobs', 'projects.id_project = jobs.cd_project');
			$this->db->where('jobs.cd_designer', $this->session->userdata('id'));
			$query = $this->db->get();
			
			foreach ($query->result() as $row){
				$rowcontent = '<tr>';
				$rowcontent .= '<td width="90"><img class="pull-left" alt="image" src="'.base_url().'assets/img/new_conc.png"/></td>';
				$rowcontent .= '<td><strong>'.$row->nm_project.'</strong><br/>'.$row->ds_description.'</td>';
				$rowcontent .= '<td width="90">'.mysqldatetime_to_date($row->dt_end).'</td>';
				$rowcontent .= '<td width="90" style="text-align:center"><h4>R$ '.$row->vl_value.'</h2><a href="'.base_url().'project/view/'.$row->id_project.'" class="btn btn-success">'.lang('active_projects_visualize').'</a></td>';
				$rowcontent .= '</tr>';
				echo $rowcontent;
			}
		?>
	</tbody>
</table>    
</div>